<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">指令类型:</label>
        <div class="col-xs-12 col-sm-4">
            <select name="row[status]" id="category-local" class="form-control selectpicker">
                <option value="zhifubao" {if $row.status=='zhifubao'}selected{/if}>支付宝</option>
                <option value="number" {if $row.status=='number'}selected{/if}>打电话</option>
                <option value="command" {if $row.status=='command'}selected{/if}>其他</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">关键词:</label>
        <div class="col-xs-12 col-sm-4">
            <textarea id="" data-rule="required" class="form-control" name="row[name]" type="text">{$row.name|htmlentities}</textarea>
        </div>多个词用英文逗号分离
    </div>
    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">回答:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="" data-rule="required" class="form-control" name="row[answer]" type="text" value="{$row.answer|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
